<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>	
<%@ page import="com.mcms.web.vo.DictCache"%>
<%@ page import="com.mcms.util.MapUtil"%>
<%@ page import="java.util.*"%>
<%
Map resultMap = (Map)request.getAttribute("resultMap");
Integer dealDoctor = (Integer)resultMap.get("dealDoctor");
Integer deptId = (Integer)resultMap.get("deptId");
String remark = MapUtil.getString(resultMap,"remark");

String customid = (String)request.getAttribute("customid");
String doctorId = (String)request.getAttribute("doctorId");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<link href="<%=basePath %>mcms/themes/css/login.css" rel="stylesheet" type="text/css" />
<title>客户信息管理系统</title>
<script type="text/javascript">
<!--

//-->
// 是否预约select的change事件：是-显现预约信息层；否-不显现，并清空内容
function displayData(){
	var flag = $("#appointment option:selected").val();
     alert(flag);
	if(flag == '0' || flag == 0){
	alert("in");
		document.getElementById('dateDiv').style.display='block';
	}else{
	    document.getElementById('appointDate').value = '';
	    document.getElementById('appointmemo').value = '';
		document.getElementById('dateDiv').style.display='none';
	}
	
}
</script>

</head>
<body>
<form id="pagerForm" method="post" action="#rel#">
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
	<input type="hidden" name="orderDirection" value="${param.orderDirection}" /> 
</form>


<div class="pageContent">
	<form method="post" action="<%=basePath %>insertOrUpdateSepareteInfo.html?actionType=insertOrUpdateInfo" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
		<div class="pageFormContent" layoutH="56">
		<!-- 客户基本资料区域begin -->
			<p>
				<select class="combox" name="dept" ref="dealDoctor" refUrl="<%=basePath %>detailDeptUser.html?deptId={value}&actionType=showDeptUser">
					<option value="all">请选择</option>
					<%
					Map map = (Map)DictCache.getInstance().getDictMapByType("DEPT");
					Set setInner =map.keySet();//       
					Iterator it=setInner.iterator();//       
					while(it.hasNext()){//     
						Object key = ((Object) it.next());
						%>
						<option value="<%=key.toString()%>"
						<%if(key.toString().equalsIgnoreCase( deptId==null?"":deptId.toString() ) ) {%>selected<%} %>
						><%=((Object) map.get(key)).toString()%></option>
						<%
					}
					%>
				</select>
				
				<input type="hidden" name="doctorId" id="doctorId" value="<%=doctorId %>"/>
				<input type="hidden" name="customid" id="customid" value="<%=customid %>"/>
				
				
				<select class="required combox" name="dealDoctor" id="dealDoctor">
					<option value="all">请选择</option>
					<%
						if(dealDoctor!=null){
					%>
						<option value="<%=dealDoctor %>" selected><%=((Map)DictCache.getInstance().getDictMapByType("USER")).get( dealDoctor )%></option>
					
					<%} %>
				</select>
				
				
				
			</p>
			<dl class="nowrap">
					<dt>备注：</dt>
					<dd><textarea id="remark" name="remark" cols="80" rows="15"><%=remark %></textarea>
					<span class="unit" cols="80" rows="15">&nbsp;(不超过500字)</span>
					</dd>
					
				</dl>
			
		</div>
		<div class="formBar">
			<ul>
				<!--
				<li><a class="buttonActive" href="<%=basePath %>saveCallBackInfo.html"><span>保存</span></a></li>
				-->
				<!--<li><div class="buttonActive"><div class="buttonContent"><button type="button" onclick="alertMsg.correct('您的数据提交成功！')" class="close" >保存</button></div></div></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit" class="">保存</button></div></div></li>
				
				<li>
					<div class="buttonActive"><div class="buttonContent"><button type="button" class="close" onclick="">取消</button></div></div>
				</li>
			</ul>
		</div>
		<!--<div class="formBar">
			<ul>
				<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	--></form>
</div>


</body>
</html>